import fetch from './fetch';

/**
  * user -> 后台登录管理接口
  */
export default {
    //  获取token
    getToken (params) {
        return fetch.post('/admin/auth', params)
    },

    //  刷新token
    refreshToken(refresh_token) {
        return fetch.post('/admin/user/refresh_token', {refresh_token})
    },

    //  获取当前用户
    getMe() {
        return fetch.get('/admin/auth')
    },

}